<script type="text/javascript" src="/static/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/static/layui.all.js"></script>
<script type="text/javascript" src="/static/js/xss.js" defer async></script>
<script type="text/javascript" src="/public/js/utils.js"></script>
<script type="text/javascript" src="/public/js/interceptor.js"></script>
<script type="text/javascript" src="/public/js/modules/main.js" defer async></script>
<script type="text/javascript">
    (function () {
        var pathname = location.pathname,
            navNodes = document.querySelectorAll('a.nav-item');
        var className = '';
        for (var i = 0, len = navNodes.length; i < len; i++) {
            var node = navNodes[i],
                curNav = node.getAttribute('href');
            if((pathname !== '/' && curNav !== '/' && pathname.indexOf(curNav) >= 0) ||
               (pathname === '/' && curNav === '/')){
                if(pathname.indexOf(curNav) >= 0){
                    className = node.className;
                    node.className = className + ' active';
                    break
                }
            }
        }
    })()
</script>